<script setup lang="ts">
 import {defineProps} from 'vue'
 defineProps({
   icon: {
     type: String,
     default:""
   },
   text:String
 })
</script>

<template>
  <div class="btn-box">
      <img class="icon" :src="icon" alt=""/>
      <p class="desc">{{text}}</p>
  </div>
</template>

<style scoped lang="scss">

@media only screen and (min-width: 800px){
  .btn-box{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    padding: 5px 18px;
    background-color: #290141;
    border: 2px solid #fff;
    cursor: pointer;
    width: 286px;
    height: 99px;
    margin: 0 10px;
    .icon{
      height: 50px;
      width: 50px;
      border-radius: 5px;
    }
    .desc{
      color: #fff;
      font-size: 28px;
      margin-left: 10px;
      padding: 3px 5px;
    }
  }
}
@media only screen and (max-width: 800px){
  .btn-box{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    padding: 2px 10px;
    background-color: #1f0032;
    border: 2px solid #fff;
    cursor: pointer;
    width: 200px;
    height: 50px;
    margin: 0 10px;
    .icon{
      height: 30px;
      width: 30px;
      border-radius: 5px;
    }
    .desc{
      color: #fff;
      font-size: 1rem;
      margin-left: 10px;
      padding: 3px 5px;
    }
  }
}

</style>